//
//  CNLogManager.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2019/4/21.
//  Copyright © 2019 CSDN. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CocoaLumberjack/CocoaLumberjack.h>

//开源依赖
#if DEBUG
static const DDLogLevel ddLogLevel = DDLogLevelVerbose;
#else
static const DDLogLevel ddLogLevel = DDLogLevelWarning;
#endif

@interface CNLogManager : NSObject

@property(nonatomic, strong) DDFileLogger *fileLogger;

+ (CNLogManager *)shareManager;

- (void)start;

/// path值为 Logs image text // 获取日志路径
- (NSArray *)getAllLogFilePath:(NSString *)path;
/// path值为 Logs image text // 获取日志内容
- (NSArray *)getAllLogFileContent:(NSString *)path;

/// 获取流量统计的日志array
/// @param path image text
- (NSArray *)getNetWorkLogString:(NSString *)path;

- (void)uploadLogWithError:(NSError *)error; 

@end

